import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/work_flow/instance/` + url, ...arg)

export default {
	async list(data) {
		return await request('list', data, 'post')
	},
	async start(data){
		return await request('start', data, 'post')
	},
	async getById(data){
		return await request('get_by_id', data, 'post')
	},
	async next(data){
		return await request('next', data, 'post')
	},
	async nextByNodeCode(data){
		return await request('next_by_node_code', data, 'post')
	}
}
